package com.niconicod.ofb;

import com.badlogic.gdx.Game;
import com.badlogic.gdx.Screen;
import com.niconicod.ofb.screens.GameScreen;
import com.niconicod.ofb.screens.MainMenuScreen;

public class OfbGame extends Game {

    private Screen mainMenuScreen;
    private Screen gameScreen;

    @Override
    public void create() {
        mainMenuScreen = new MainMenuScreen(this);
        gameScreen = new GameScreen();
        setScreen(mainMenuScreen);
    }

    public void startGame(){
        setScreen(gameScreen);
    }


//    SpriteBatch batch;
//    Texture img;
//
//    @Override
//    public void create() {
//        batch = new SpriteBatch();
//        img = new Texture("badlogic.jpg");
//    }
//
//    @Override
//    public void render() {
//        ScreenUtils.clear(1, 0, 0, 1);
//        batch.begin();
//        batch.draw(img, 0, 0);
//        batch.end();
//    }
//
//    @Override
//    public void dispose() {
//        batch.dispose();
//        img.dispose();
//    }
}
